function iconFilter(hash){

let suffix="" 
//endsWith 后缀名
if(hash.endsWith("jpeg")){
    suffix="jpeg"
}else if(hash.endsWith("jpg")) {
    suffix="jpg" 
}else if(hash.endsWith("png")) {
    suffix="png" 
}else if(hash.endsWith("gif")) {
    suffix="gif" 
}
// https://fuss10.elemecdn.com/2/27/a2109274980610deef43ab8a848a3png.png?imageMogr/thumbnail/!130x130r/gravity/Center/crop/130x130/
return "https://fuss10.elemecdn.com/"+hash.substr(0,1)+"/"+hash.substr(1,2)+"/"+hash.substr(3)+"."+suffix
}
export {iconFilter} 